.class public final Lcom/ninesky/browser/a/u;
.super Lcom/ninesky/a/a/d;


# instance fields
.field private a:Lcom/ninesky/browser/a/m;

.field private b:Ljava/lang/String;

.field private c:Ljava/lang/String;

.field private d:Ljava/lang/String;

.field private e:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    sget-object v0, Lcom/ninesky/browser/a/g;->b:Ljava/lang/String;

    invoke-direct {p0, p1, v0}, Lcom/ninesky/a/a/d;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    iput-object p2, p0, Lcom/ninesky/browser/a/u;->b:Ljava/lang/String;

    iput-object p4, p0, Lcom/ninesky/browser/a/u;->c:Ljava/lang/String;

    iput-object p5, p0, Lcom/ninesky/browser/a/u;->d:Ljava/lang/String;

    iput-object p3, p0, Lcom/ninesky/browser/a/u;->e:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method protected final a()Ljava/lang/String;
    .locals 1

    const-string v0, "password"

    return-object v0
.end method

.method protected final c()Lorg/json/JSONObject;
    .locals 3

    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    iget-object v1, p0, Lcom/ninesky/browser/a/u;->b:Ljava/lang/String;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/ninesky/browser/a/u;->b:Ljava/lang/String;

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    const-string v1, "user"

    iget-object v2, p0, Lcom/ninesky/browser/a/u;->b:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_0
    iget-object v1, p0, Lcom/ninesky/browser/a/u;->c:Ljava/lang/String;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/ninesky/browser/a/u;->c:Ljava/lang/String;

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "pwd"

    iget-object v2, p0, Lcom/ninesky/browser/a/u;->c:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_1
    iget-object v1, p0, Lcom/ninesky/browser/a/u;->d:Ljava/lang/String;

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/ninesky/browser/a/u;->d:Ljava/lang/String;

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_2

    const-string v1, "newpwd"

    iget-object v2, p0, Lcom/ninesky/browser/a/u;->d:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_2
    iget-object v1, p0, Lcom/ninesky/browser/a/u;->e:Ljava/lang/String;

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/ninesky/browser/a/u;->e:Ljava/lang/String;

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_3

    const-string v1, "source"

    iget-object v2, p0, Lcom/ninesky/browser/a/u;->e:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_3
    :goto_0
    return-object v0

    :catch_0
    move-exception v1

    const-string v2, "UpdatePasswordRequest"

    invoke-virtual {v1}, Lorg/json/JSONException;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v2, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method

.method public final d()Lcom/ninesky/a/a/e;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/a/u;->a:Lcom/ninesky/browser/a/m;

    if-nez v0, :cond_0

    new-instance v0, Lcom/ninesky/browser/a/m;

    invoke-direct {v0}, Lcom/ninesky/browser/a/m;-><init>()V

    iput-object v0, p0, Lcom/ninesky/browser/a/u;->a:Lcom/ninesky/browser/a/m;

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/a/u;->a:Lcom/ninesky/browser/a/m;

    return-object v0
.end method

.method public final toString()Ljava/lang/String;
    .locals 1

    const-string v0, "UpdatePasswordRequest"

    return-object v0
.end method
